package eerbaar.v2.pattern;

import eerbaar.game.IGame;
import eerbaar.shared.exceptions.GameException;
import eerbaar.v2.gamebuilder.GamePacket;

public class ProgramPacket {

    private GamePacket packet;

    private String program = "";

    private boolean success;

    private String temporaryName = "";

    public IGame getGame() throws GameException {

        return this.packet.getGame();
    }

    public GamePacket getPacket() {
        return this.packet;
    }

    public String getProgram() {
        return this.program;
    }

    public String getTemporaryName() {
        return this.temporaryName;
    }

    public void setPacket(GamePacket packet) {
        this.packet = packet;
    }

    public void setProgram(String program) {
        this.program = program;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public void setTemporaryName(String temporaryName) {
        this.temporaryName = temporaryName;
    }

    public boolean wasSuccessful() {
        return this.success;
    }

}
